/// <summary>
/// 敌人死亡状态基类，
/// 敌人如有特殊死亡机制，则死亡状态继承该脚本
/// </summary>
public class Enemy_DeadState : EnemyStateBase
{
    public Enemy_DeadState(Enemy enemy, StateMachine stateMachine, string animName) : base(enemy, stateMachine, animName)
    {

    }
    public override void Update()
    {
        base.Update();
        if (triggerCalled)
        {
            enemy.gameObject.SetActive(false);
        }
    }
}
